package org.ydsw.data.manage.schedule;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.HttpEntity;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.message.BasicHeader;
import org.apache.http.protocol.HTTP;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import org.ydsw.data.manage.mapper.ScheduleJobEntityMapper;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

import java.text.NumberFormat;
import java.util.Date;


/**
 * 任务实现类
 *
 * @author admin
 */
@Slf4j
@Component("taskTest")
public class TaskTest {

    @Autowired
    TaskTest taskTest;
    @Autowired
    ScheduleJobEntityMapper scheduleJobEntityMapper;

    /**
     * 不带参数的方法
     */
    public void getDate() {
        log.info("TaskTest getDate : " + new Date());
    }

    /**
     * 带参数的方法
     */
    public void getDate(String args) {
        log.info("Quartz Task Test : 测试时间：" + new Date() + "," + args);
    }



}
